/* 存放劳动合同路由 */
import { DEFAULT_LAYOUT } from '../base';
// import DEFAULT_LAYOUT from '@/layout/default-layout.vue'
import { AppRouteRecordRaw } from '../types';

const C_CONTRACT: AppRouteRecordRaw = {
  path: 'c_contract',
  name: 'C_Contract',
  meta: {
    locale: '劳动合同',
    requiresAuth: true,
    icon: 'icon-home',
    order: 9,
    hideInMenu: false,
    roles: ['user']
  },
  redirect: {
    name: 'C_MyContract'
  },
  children: [
    {
      path: 'myContract',
      name: 'C_MyContract',
      component: () => import('@/views/Client/Contract/MyContract/index.vue'),
      meta: {
        locale: '我的合同',
        requiresAuth: true,
        icon: 'icon-home',
        hideInMenu: false,
        roles: ['user']
      }
    },
    {
      path: 'subContract',
      name: 'C_SubContract',
      component: () => import('@/views/Client/Contract/SubContract/index.vue'),
      meta: {
        locale: '下属合同',
        requiresAuth: true,
        icon: 'icon-home',
        hideInMenu: false,
        roles: ['user']
      }
    }
  ]
};

export default C_CONTRACT;
